package com.jprocms.module.cms.controller.admin.voteitem.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 投票项 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class VoteItemBaseVO {

    @Schema(description = "投票ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "29297")
    @NotNull(message = "投票ID不能为空")
    private Long voteId;

    @Schema(description = "标题", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "标题不能为空")
    private String title;

    @Schema(description = "得票数", requiredMode = Schema.RequiredMode.REQUIRED, example = "19562")
    @NotNull(message = "得票数不能为空")
    private Integer count;

    @Schema(description = "排序", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "排序不能为空")
    private Integer itemSort;

}
